import request from '@/utils/request'

// 查询医疗机构传染病防治列表
export function listMedicalOrgContagion(query) {
  return request({
    url: '/medical/medicalOrgContagion/list',
    method: 'get',
    params: query
  })
}

// 查询医疗机构传染病防治详细
export function getMedicalOrgContagion(id) {
  return request({
    url: '/medical/medicalOrgContagion/' + id,
    method: 'get'
  })
}

// 新增医疗机构传染病防治
export function addMedicalOrgContagion(data) {
  return request({
    url: '/medical/medicalOrgContagion',
    method: 'post',
    data: data
  })
}

// 修改医疗机构传染病防治
export function updateMedicalOrgContagion(data) {
  return request({
    url: '/medical/medicalOrgContagion',
    method: 'put',
    data: data
  })
}

// 删除医疗机构传染病防治
export function delMedicalOrgContagion(id) {
  return request({
    url: '/medical/medicalOrgContagion/' + id,
    method: 'delete'
  })
}
